﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace Face.Web.Admin
{
    public partial class login : System.Web.UI.Page
    {
        private static IBLL.IAdminInAdmin bll = BLLFactory.DataAccess.GetAdmin();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void loginButton_Click(object sender, EventArgs e)
        {
            string nusername = username.Text;
            string npassword = password.Text;
            if (bll.CheckLogin(nusername, npassword))
            {
                Session["admin"] = nusername;
                Response.Redirect("/Admin/AdminUserManager.aspx");
            }
        }

    }
}